<!DOCTYPE html>
<html>
<head>
    <title>图书列表</title>
</head>
<body>
    <h1>图书列表</h1>
    <a href="{% url 'add_book' %}">添加新图书</a>
    <ul>
        {% for book in books %}
        <li>
            {{ book.title }} - {{ book.author }} - {{ book.isbn }} - {{ book.publish_date }} - 库存: {{ book.quantity }}
        </li>
        {% empty %}
        <li>暂无图书</li>
        {% endfor %}
    </ul>
</body>
</html>